package database.entity;

import java.util.Date;

/**
 *
 * @author Tom
 */
public class Mail
{
    public boolean selected;
    
    //mail properties
    public int MailID;
    public int BoxID;
    public String From;
    public String To;
    public String CC;
    public String BCC;
    public String Subject;    
    public String Content;
    public Date SentDate;
    public Date ReceivedDate;
    public boolean Signed;
    public boolean Encrypted;
    public String HeaderField1;
    public String HeaderField2;
    public String HeaderField3;
    public boolean Unread;
    
    public Mail() 
    {
    
    }
    
    public Mail(int mailID, int boxID, String from, String to, String cc, String bcc, 
            String subject, String content, Date sent, Date received, 
            boolean sign, boolean encrypt, String headerfield1, String headerfield2, String headerfield3, boolean Unread)
    {
        selected=false;
        
        this.MailID=mailID;
        this.BoxID=boxID;
        this.From=from;
        this.To=to;
        this.CC=cc;
        this.BCC=bcc;
        this.Subject=subject;
        this.Content=content;
        this.SentDate=sent;
        this.ReceivedDate=received;
        this.Signed=sign;
        this.Encrypted=encrypt;
        this.HeaderField1=headerfield1;
        this.HeaderField2=headerfield2;
        this.HeaderField3=headerfield3;
        this.Unread=Unread;
    }
}
